cmake_minimum_required(VERSION 3.5.1)
project(LynAppZoo)

file (
    GLOB samples
    ${PROJECT_SOURCE_DIR}/level1/*
    ${PROJECT_SOURCE_DIR}/level2/*
    ${PROJECT_SOURCE_DIR}/level3/*
)

foreach(sample ${samples})
    if(EXISTS ${sample}/cpp)
        message("add sample " ${sample})
        add_subdirectory(${sample}/cpp)
    endif()
endforeach()
